package com.aaa.outbound.service.impl;

import com.aaa.entity.outbound.PickDetail;
import com.aaa.entity.outbound.PicktaskDetail;
import com.aaa.outbound.mapper.PickDetailMapper;
import com.aaa.outbound.service.PickDetailService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author aaa
 * @since 2020-12-03
 */
@Service
public class PickDetailServiceImpl extends ServiceImpl<PickDetailMapper, PickDetail> implements PickDetailService {
    @Autowired
    private PickDetailMapper pickDetailMapper;

    @Override
    public List<PicktaskDetail> selectPicktaskDetailByPickno(String pickno) {
        return pickDetailMapper.selectPicktaskDetailByPickno(pickno);
    }

    @Override
    public List<PickDetail> selectPickDetailByOutorderno(String outorderno) {
        return pickDetailMapper.selectPickDetailByOutorderno(outorderno);
    }

    @Override
    public List<PickDetail> selectPickDetailByPickno(String pickno) {
        return pickDetailMapper.selectPickDetailByPickno(pickno);
    }

    @Override
    public Long selectOutorderIdByPickno(String pickno) {
        return pickDetailMapper.selectOutorderIdByPickno(pickno);
    }

    @Override
    public List<PicktaskDetail> searchCommodityByPicktaskno(String picktaskno) {
        return pickDetailMapper.searchCommodityByPicktaskno(picktaskno);
    }

    @Override
    public List<PickDetail> searchLocatorByCommodity(String picktaskno, String commoditybar) {
        return pickDetailMapper.searchLocatorByCommodity(picktaskno,commoditybar);
    }
}
